package edu.guet.server.mapper;

import edu.guet.server.model.Post;
import edu.guet.server.model.dto.TechPostDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PostMapper {
    List<Post> hottestPost();

    List<Post> newestPost();

    List<TechPostDTO> getPost(Integer semester_id);

    void setPost(Post post);
}
